package com.liziba.rpc;

import java.io.Serializable;
import java.util.Arrays;

/**
 * @auther LiZiBa
 * @date 2020/10/19 22:44
 * @description:
 **/
public class RpcRequest implements Serializable {


    private String clazzName;
    private String methodName;
    private Object[] params;
    private Class[] types;

    public RpcRequest() {
    }

    public RpcRequest(String clazzName, String methodName, Object[] params, Class[] types) {

        this.clazzName = clazzName;
        this.methodName = methodName;
        this.params = params;
        this.types = types;
    }

    public String getClazzName() {
        return clazzName;
    }

    public void setClazzName(String clazzName) {
        this.clazzName = clazzName;
    }

    public String getMethodName() {
        return methodName;
    }

    public void setMethodName(String methodName) {
        this.methodName = methodName;
    }

    public Object[] getParams() {
        return params;
    }

    public void setParams(Object[] params) {
        this.params = params;
    }

    public Class[] getTypes() {
        return types;
    }

    public void setTypes(Class[] types) {
        this.types = types;
    }

    @Override
    public String toString() {
        return "RpcRequest{" +
                "clazzName='" + clazzName + '\'' +
                ", methodName='" + methodName + '\'' +
                ", params=" + Arrays.toString(params) +
                ", types=" + Arrays.toString(types) +
                '}';
    }
}
